/**
 * The Sea.js plugin to provide log function
 */
define("seajs/seajs-log/1.0.1/seajs-log-debug", [], function() {
    var data = seajs.data;
    // The safe wrapper for `console.xxx` functions
    // log("message") ==> console.log("message")
    // log("message", "warn") ==> console.warn("message")
    seajs.log = function(msg, type) {
        window.console && (// Do NOT print `log(msg)` in non-debug mode
        type || data.debug) && // Set the default value of type
        console[type || (type = "log")] && // Call native method of console
        console[type](msg);
    };
});

seajs.require("seajs/seajs-log/1.0.1/seajs-log-debug");
